# def itest(**kwarge):
#     print(kwarge)
#
# if os.path.exists('456user.txt'):
#     print('yes')
# else:
#     print('no')
# li1 = []
# with open('tester.txt', 'r', encoding='utf-8')as f:
#     for line in f:
#        li1.append(line.strip())
# print(li1)
# li2 = []
# for i in range(10000):
#     t = f'tester{i}'
#     li2.append(t)
# print(li2)
#
# s1 = set(li1)
# s2 = set(li2)
# with open('t.txt', mode='w', encoding='utf-8') as f:
#     f.write(str(s2-s1))
# def open_file():
#     with open('t.txt', mode='r', encoding='utf-8') as f:
#         print(f.read())
# def ff():
#    mqttdemo._account()
# with ProcessPoolExecutor(50) as p:
#     with ThreadPoolExecutor(50) as t:
#         for i in range(10000):
#             t.submit(open_file, )
#

# l = [i for i in  range(20)]
#
# with ThreadPoolExecutor(10) as t:
#     i = 0
#     for i in l:
#         if i.__index__() % 5 == 0:
#             print(i.__index__())
import json
import os
import time
from concurrent.futures import ThreadPoolExecutor

# print(min(32, (os.cpu_count() or 1) + 4))
# a = 1
# b = 0
#
# if a or b:
#     assert 1 == 1
#     print('断言成功')
# else:
#     assert 1 == 0
#     print('断言失败')


import yaml
from jinja2 import Template

def load_yaml(yaml_file):
    with open(yaml_file, mode='r', encoding='utf8') as f:
        pass


# load_yaml('../data_object/demo/testdata1.yaml')

# t = load_yaml('../data_object/demo/testdemo2.yaml')
# template = Template(t)
# new_yaml = template.safe_substitute({"now": time.time()})
# print(new_yaml)
# a = []
# print(a[0])

dict_1 = {"name": "chen", "age": 18}
list1 = ['name', 'age']
for k in list1:
    if 'name' not in dict_1.keys():
        print(f"name not in {list1}")
    else:
        print("name in keys()")

a = 'a'
b = a.lower()
print(b)
c = None
if c:
    if c.lower() != "no":
        print('pass')



import pytest

def pytest_addoption(parser):
    parser.addoption()


